<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 计算圆锥体积
        var r = prompt("请输入圆锥的底面半径（cm）：",);
        var h = prompt("请输入圆锥的高（cm）",);
        var v;
        v = 1 / 3 * 3.14 * r**2 * h;
        alert("圆锥的体积为"+v+"立方厘米");
    </script>
</body>
</html>